package com.crm.employee;

import java.util.List;

import com.crm.dao.CommonDAO;
import com.crm.dept.po.Dept;
import com.crm.employee.po.Employ;

public class EmployDAO extends CommonDAO implements IEmployDAO {

	public boolean addEmploy(Employ employ) {
		this.getSqlMapClientTemplate().insert("Employ.insertEmploy", employ);
		return false;
	}
	public Employ getEmployDetail(Integer id) {
		return (Employ) this.getSqlMapClientTemplate().queryForObject("Employ.getEmployDetail", id);
	}

	public List getEmployList() {
		List list = this.getSqlMapClientTemplate().queryForList("Employ.getEmployList", null);// TODO Auto-generated method stub
		return list;
	}

	public boolean updateEmploy(Employ employ) {
		this.getSqlMapClientTemplate().update("Employ.updateEmploy", employ);// TODO Auto-generated method stub
		return true;
	}

}
